function search() {
	console.log(document.getElementById('date').value)
	var httpRequest = new XMLHttpRequest(); //第一步：建立所需的对象
	httpRequest.open('GET', '/search?data=' + document.getElementById('date').value, true);
	httpRequest.send(); //第三步：发送请求  将请求参数写在URL中
	httpRequest.onreadystatechange = function() {
		if (httpRequest.readyState == 4 && httpRequest.status == 200) {
			var json = JSON.parse(httpRequest.responseText)
			var list = ""
			for (var p in json) {
				list += "<tr>"+
				"<th>" + json[p].value + "</th>" +
				"<th>" +json[p].date + " " + json[p].time + "</th>"+
				"</tr>"
			}
			console.log(list)
			document.getElementById('talbes').innerHTML=list
		}
	};
}